package com.dylon.system.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 接口返回参数明细，针对返回object、array等
 */
@Data
public class SysInterfaceParamResponse  extends BaseEntity {
    private static final long serialVersionUID = 1L;

    private Long    infoId; //
    private Long    paramId; //'所属响应参数',
    private String  infoName; //'请求响应参数明细名称',
    private String  dataType; //'请求响应参数明细数据类型',
    private String  required; //'参数是否非空：0否，1是',
    private String  description; //'请求响应参数明细描述',
    private Long    parentId; //'父节点，针对类型是array、object等',

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("infoId", getInfoId())
                .append("paramId", getParamId())
                .append("infoName", getInfoName())
                .append("dataType", getDataType())
                .append("required", getRequired())
                .append("description", getDescription())
                .append("parentId", getParentId())
                .toString();
    }
}
